﻿@using Volo.Abp.AspNetCore.Mvc.UI.Theme.SB.Themes.SB.Components.Toolbar.LanguageSwitch
@model LanguageSwitchViewComponentModel


<li class="nav-item dropdown no-arrow">
    <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <span class="mr-2 d-none d-lg-inline text-gray-600 small">@Model.CurrentLanguage.DisplayName</span>
    </a>

    <!-- Dropdown - User Information -->
    <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown">
        @foreach (var language in Model.OtherLanguages)
        {
            <a class="dropdown-item" href="/Abp/Languages/Switch?culture=@(language.CultureName)&uiCulture=@(language.UiCultureName)">
                @language.DisplayName
            </a>
        }
    </div>


</li>
